home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat2 / standard / getsid.z / getsid
Encoding:
Text File  |  2002-10-03  |  3.1 KB  |  66 lines

  1.  
  2.  
  3.  
  4. ggggeeeettttssssiiiidddd((((2222))))                                                            ggggeeeettttssssiiiidddd((((2222))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      _gggg_eeee_tttt_ssss_iiii_dddd - get session ID
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_tttt_yyyy_pppp_eeee_ssss_...._hhhh_>>>>
  13.      _pppp_iiii_dddd______tttt _gggg_eeee_tttt_ssss_iiii_dddd_((((_pppp_iiii_dddd______tttt _p_i_d_))))_;;;;
  14.  
  15. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  16.      The function _gggg_eeee_tttt_ssss_iiii_dddd returns the session ID of the process whose process
  17.      ID is equal to _p_i_d.  If _p_i_d is equal to _((((_pppp_iiii_dddd______tttt_))))_0000, _gggg_eeee_tttt_ssss_iiii_dddd returns the
  18.      session ID of the calling process.
  19.  
  20. RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
  21.      Upon successful completion, the function _gggg_eeee_tttt_ssss_iiii_dddd returns the session ID of
  22.      the specified process; otherwise, it returns a value of _((((_pppp_iiii_dddd______tttt_))))_----_1111 and
  23.      sets _eeee_rrrr_rrrr_nnnn_oooo to indicate an error.
  24.  
  25. EEEERRRRRRRROOOORRRRSSSS
  26.      Under the following conditions, the function _gggg_eeee_tttt_ssss_iiii_dddd fails and sets _eeee_rrrr_rrrr_nnnn_oooo
  27.      to:
  28.  
  29.      _EEEE_PPPP_EEEE_RRRR_MMMM     if the process  whose process ID is equal to _p_i_d is not in the
  30.                same session as the calling process, the implementation does
  31.                not allow access to the session ID of that process from the
  32.                calling process.  Under IRIX, access to the session ID of that
  33.                process is always allowed to the calling process.
  34.  
  35.      _EEEE_AAAA_CCCC_CCCC_EEEE_SSSS    In the Trusted IRIX environment, the MAC label of the current
  36.                process does not dominate and is not equal to the MAC label of
  37.                the process _p_i_d , and the current process does not have the
  38.                CCCCAAAAPPPP____MMMMAAAACCCC____RRRREEEEAAAADDDD capability.
  39.  
  40.      _EEEE_IIII_NNNN_VVVV_AAAA_LLLL    The _p_i_d is out of range or is not an invalid argument.
  41.  
  42.      _EEEE_SSSS_RRRR_CCCC_HHHH     if there is no process with a process ID equal to _p_i_d.
  43.  
  44. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  45.      exec(2), fork(2), getpid(2), setpgid(2), setsid(2) capabilities(4)
  46.      dominance(5)
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.                                                                         PPPPaaaaggggeeee 1111
  62.  
  63.  
  64.  
  65.